package com.lx.blogflux.dao;

import com.lx.blogflux.entity.User;
import org.springframework.data.r2dbc.repository.R2dbcRepository;
import org.springframework.stereotype.Repository;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;

@Repository
public interface UserDao extends R2dbcRepository<User, Long> {

    Flux<User> findByName(String name);

    Mono<User> findById(int id);

    Flux<User> findByIntroLike(String intro);

    Mono<Integer> countByIntroLike(String intro);


}
